<template>
  <el-dialog
          :model-value="visible"
          title="详情"
          @close="dialogClose"
          width="40%"
  >
     <el-form :model="row" ref="formRef" label-width="100px">
        <el-form-item label="分组名称：" prop="name">
          <el-input v-model="row.name" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="备注：">
          <el-input v-model="row.note" type="textarea" :disabled="true"></el-input>
        </el-form-item>
        <el-form-item label="创建时间：">
          <el-input v-model="row.create_time" :disabled="true"></el-input>
        </el-form-item>
      </el-form>

      <template #footer>
        <span class="dialog-footer">
          <el-button @click="dialogClose">取消</el-button>
        </span>
      </template>

  </el-dialog>
</template>

<script>
    export default {
        name: "ServerGroupDescribe",
        props: {
            visible: Boolean,
            row: '',  // 当前行内容
        },
        methods: {
          dialogClose() {
            this.$emit('update:visible', false)  // 当对话框关闭，通过父组件更新为false
          },
        }
    }
</script>

<style scoped>

</style>